<?php
include_once('/main_global.php');
$post=new bn_post;
$gf=new bn_genralfunc;
$cat=new bn_category;
$grid=new bn_grid;

$theme->add_block('body');
$cid=$gf->Get_number($_GET['cid']);
if(!isset($cid))
bn_redirect('sample.php');
?>
<div id="show">
<?php
$col=new column;
$col->template='
<a href="<%url%>"><%title%></a>
<br /><br />
<span><%text%></span>
';
$grid->columns->append($col);
echo $grid->show($post->select_allposturl($cid)->fetch());
?>
</div>
<?php	
$theme->render();
?>